package com.linln.admin.ws.api;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author songhao
 * @version 1.0
 * @description: TODO
 * @date 2023/1/4 16:23
 */
@NoArgsConstructor
@Data
public class PhoneMessage {


    @com.alibaba.fastjson2.annotation.JSONField(name = "messaging_product")
    private String messagingProduct;
    @com.alibaba.fastjson2.annotation.JSONField(name = "to")
    private String to;
    @com.alibaba.fastjson2.annotation.JSONField(name = "type")
    private String type;
    @com.alibaba.fastjson2.annotation.JSONField(name = "template")
    private TemplateDTO template;

    @NoArgsConstructor
    @Data
    public static class TemplateDTO {
        @com.alibaba.fastjson2.annotation.JSONField(name = "name")
        private String name;
        @com.alibaba.fastjson2.annotation.JSONField(name = "language")
        private TemplateDTO.LanguageDTO language;

        @NoArgsConstructor
        @Data
        public static class LanguageDTO {
            @com.alibaba.fastjson2.annotation.JSONField(name = "code")
            private String code;
        }
    }
}
